#define _CRT_SECURE_NO_WARNINGS 

#include <iostream>
using namespace std;

class Date {

public:
	Date(int year = 1, int month = 1, int day = 1)
	{
		_year = year;
		_month = month;
		_day = day;
	}
	void print()
	{
		cout << this->_year << '-' << _month << '-' << _day << endl;
	}

	int _year;
	int _month;
	int _day;
};


int main()
{
	Date d1(2005, 8, 27);
	Date d2(2004, 8, 27);
	Date d3(d1);
	d1.print();
	d2.print();
	d3.print();
	return 0;
}